import type {Ref,InjectionKey} from 'vue'
export type nameType = string | number;

export interface collapseItemProps {
    name:nameType;
    title?:string;
    disabled?:boolean;
}
export interface collapseEmits {
    (e:'update:modelValue',value:nameType[]):void;
    (e:'change',value:nameType[]):void;
}
export interface collapseProps {
    modelValue:nameType[];
    // 手风琴模式
    accordion?:boolean;
}

export interface collapseContext {
    activeName:Ref<nameType[]>;
    handleractiveName:(item:nameType)=>void
}
export const collapseContextKey:InjectionKey<collapseContext> = Symbol();
